package com.woniuxy.reader.service;

import com.woniuxy.reader.entity.Subscribe;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.reader.vo.SubscribeVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zh_o
 * @since 2020-10-12
 */
public interface SubscribeService extends IService<Subscribe> {

    /**
     * 新增订阅
     * @param subscribe
     */
    void insertSubscribe(Subscribe subscribe);

    /**
     * 根据userID查询订阅
     * @param userid
     * @return
     */
    List<SubscribeVO> selectSubscribeByUserId(String userid);
}
